package cn.kgc.dao;

import cn.kgc.entity.Student;
import cn.kgc.entity.Teacher;

import java.util.List;

public interface StudentDao {
    //查询方法
    List<Student> searchs(int currentPage,int currentSize,String stunum,String name,String specialty);
    // 计算总的记录数
    int totalCount(String stunum,String name,String specialty);
    //计算总页数
    public int totalPage(int pageSize,String stunum,String name,String specialty);
    //增加的方法
    int add(Student student);

    Student getById(String ids);

    int updateStudent(Student student);
}
